package edu.cque.jt.provider.service;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Component;

/**
 * @author Hua
 * @create 2022-07-25 16:49
 */
@Component
public class FallbackHandler {

    /*
    此处的异常类型必须为 Throwable
     */
    public static String call(Throwable e) {
        return "业务异常,访问太频繁了.";
    }
}
